package com.lanswon.qzsmk.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.lanswon.qzsmk.model.CardManage;

public interface CardManageMapper {

	/**
	 * 保存
	 * @param record
	 * @return
	 */
    int insert(CardManage record);
    
    /**
     * 批量插入
     * @param cardManages
     * @return
     */
    int batchInsert(@Param("list")List<CardManage> cardManages);
    
    /**
	 * 更新
	 * @param record
	 * @return
	 */
    int update(CardManage record);

    /**
     * 根据市民卡号查询卡管理表
     * @param citizenCardNo
     * @return
     */
    CardManage queryCardManageByCitizenCardNo(String citizenCardNo);
    
    /**
     * 根据证件号查询卡管理表
     * @param customerNo
     * @param cardpCode
     * @return
     */
    List<CardManage> queryCardManageByPaperNo(String customerNo,String cardpCode);
    
    
}